package com.syni.mdd.sjb.common.component.mybatis.community.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 已安装应用的企业表
 * </p>
 *
 * @author lcc
 * @since 2021-02-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SjbQywxCompany implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 企业永久授权码
     **/
    private String permanentCode;
    /**
     * 企业id
     */
    private String corpId;

    /**
     * 应用id
     */
    private String agentId;

    /**
     * 企业简称
     */
    private String corpName;
    /**
     * 企业名称
     */
    private String corpFullName;
    /**
     * 企业地址
     */
    private String location;
    /**
     * 企业人数
     */
    private Integer corpUserMax;
    /**
     * corp_industry
     */
    private String corpIndustry;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    public static final String ID = "id";

    public static final String CORP_ID = "corp_id";

    public static final String CORP_NAME = "corp_name";

    public static final String CORP_FULL_NAME = "corp_full_name";

    public static final String LOCATION = "location";

    public static final String CORP_USER_MAX = "corp_user_max";

    public static final String CORP_INDUSTRY = "corp_industry";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String PERMANENT_CODE = "permanent_code";

}
